<!--
 * @Description: 
 * @Author: mxy
 * @Date: 2022-11-08 20:34:38
 * @LastEditors: mxy
 * @LastEditTime: 2022-11-08 21:10:29
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script src="./axios.js"></script>
    <script>
        axios({
            method: 'GET',  //默认是get操作
            url: 'http://www.itcbc.com:3006/api/getbooks',  //必写项
            //获取自己添加的唯一标示的图书信息
            // params: {
            //     appkey: 'xiaomeng'
            // }
        }).then(({ data: res }) => {
            console.log(res);
        })
    </script>
</body>

</html>